package main.flex.skin
{
	import flash.display.Graphics;
	
	import main.flex.conf.MainConf;
	
	import mx.skins.ProgrammaticSkin;

	public class HeaderUserSkin extends ProgrammaticSkin
	{
		public function HeaderUserSkin()
		{
			super();
		}

		override protected function updateDisplayList( w : Number, h : Number) : void
        {
        	super.updateDisplayList( w, h );
            var g 		: Graphics 		= graphics;
            g.clear();
            
            var color	: uint			= getStyle("backgroundColor");
            
            g.beginFill( color );
            // g.lineStyle(0, 0x000000, 0);
            g.drawRoundRect(
            					0,
            					0,
            					w,
            					h,
            					MainConf.ELLIPSE_MINI_CONTAINER,
            					MainConf.ELLIPSE_MINI_CONTAINER
            					);
            g.endFill();
            //this.alpha = 0.5;
            
            /* g.lineStyle(1, getStyle("headerTopLine"), 1);
            g.moveTo(0,0);
            g.lineTo(w, 0);
            g.lineStyle(1, getStyle("headerBottomLine"), 1);
            g.moveTo(0, h - 0.5);
            g.lineTo(w, h - 0.5); */         
        }
	}
}